-- property_damage
-- created by xinj
-- 伤害类道具效果+N%

return {
    apply = function(prop, baseValue)
        if prop[3] > 0 then
            -- 触发特技发动事件
            EventMgr.fire(event.SPECIAL_SKILL_TRIGGER, { propId = prop[1] })
        end

        return baseValue + math.modf(baseValue * prop[3] / 1000);
    end,

    record = function(target, prop, path)
        return false;
    end
};